//
//  Test.c
//  Queue
//
//  Created by Xavier on 2023/10/16.
//

#include <stdio.h>
#include "Queue.h"

int main(int argc, const char * argv[]) {


    //非循环队列
    Queue q;
    QueueInit(&q);
    QueuePush(&q, 1);
    QueuePush(&q, 3);
    QueuePush(&q, 5);
    QueuePush(&q, 7);
    QueuePush(&q, 9);
    QueuePrint(&q);
    
    QueuePop(&q);
    QueuePrint(&q);
    
    QDataType queueFront = QueueFront(&q);
    printf("queueFront:%d\n", queueFront);
    QDataType queueBack =  QueueBack(&q);
    printf("queueBack:%d\n", QueueBack(&q));
    
    int size = QueueSize(&q);
    printf("size:%d\n", size);
    
    int isEmpty = QueueEmpty(&q);
    printf("检测队列是否为空，如果为空返回非零结果，如果非空返回0: %d\n", isEmpty);
    
}
